package itdfq.ydd.Behavior_Patters.mingling;

/**
 * @Author GocChin
 * @Date 2021/5/7 11:56
 * @Blog: itdfq.com
 * @QQ: 909256107
 * @Descript:
 */
public class Controller {
    private Command open,shutdown,change;

    public Controller(Command open, Command shutdown, Command change) {
        this.open = open;
        this.shutdown = shutdown;
        this.change = change;
    }
    public void open(){
        open.exec();
    }
    public void shutdown(){
        shutdown.exec();
    }
    public void change(){
        change.exec();
    }
}
